import 'package:flutter/material.dart';
import 'package:flutterdemo/pages/tab1/httpTest1Page.dart';
import 'package:flutterdemo/pages/tab1/refresh_list_view_demo.dart';

class HttpDemoListsPage extends StatefulWidget {
  HttpDemoListsPage({Key key}) : super(key: key);

  _HttpDemoListsPageState createState() => _HttpDemoListsPageState();
}

class _HttpDemoListsPageState extends State<HttpDemoListsPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('HttpDemoListsPage'),
      ),
      body: ListView(
        children: <Widget>[
          ListTile(
            title: Text('dio使用'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => HttpTest1Page(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('dio使用 下拉刷新，上拉加载'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => RefreshListViewDemo(),
                ),
              );
            },
          ),
        ],
      ),
    );
  }
}
